

/***************************** Include Files *******************************/
#include "C_LED.h"

/************************** Function Definitions ***************************/

void C_LED_setMaxCount(unsigned int BaseAddress, unsigned short max_val){
    C_LED_mWriteReg(BaseAddress, C_LED_S00_AXI_SLV_REG0_OFFSET, max_val);
}

void C_LED_setDutyCycle(unsigned int BaseAddress, unsigned short duty_cycle){
    C_LED_mWriteReg(BaseAddress, C_LED_S00_AXI_SLV_REG1_OFFSET, duty_cycle);
}

void C_LED_openLED(unsigned int BaseAddress, unsigned short ledcode){
    C_LED_mWriteReg(BaseAddress, C_LED_S00_AXI_SLV_REG2_OFFSET, ledcode);
}